﻿using System.Collections.Generic;
using System.Linq;
using Core.DAL;
using Core.Utils;

namespace Core.BOL
{
    public class FunctionRepository
    {
        private ScoutNetDataContext context = null;

        #region Construtor
        public FunctionRepository()
        {
            context = GeneralUtils.GetDataContext();
        }
        #endregion

        #region Methodes
        public List<aspnet_Role> GetAllFunctions()
        {
            List<aspnet_Role> query = (from f in context.aspnet_Roles
                                       select f).ToList();
            return query;
        }
        #endregion
    }
}
